function IContainerWorkers(container, item, options) {
  this._container = container;
  this._item = item;
  this._options = options;
  this._createElements();
};
IContainerWorkers.prototype._createElements = function() {
  var gui, table, _self = this, unique = MiscUtils.unique();
  
  table = document.createElement('table');
  table.style.width = '898px';
  table.style.height = '24px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '580px';
  td.style.height = '30px';
  td.style.textAlign = 'right';
  td.style.paddingRight = '40px';
  td.style.verticalAlign = 'middle';
  td.style.fontWeight = 'bold';
  td.style.color = '#694247';
  td.style.fontSize = '12pt';
  td.appendChild(document.createTextNode('Photographer and Videographer'));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'right';
  td.style.verticalAlign = 'middle';
  td.style.padding = '0 20px 0 0';
  var edit = DOMUtils.createInput('', '', 'button', '', null);
  edit.className = "manage";
  edit.id = unique + 'edit_button';
  td.appendChild(edit);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '900px';
  td.style.height = '80px';
  td.align = 'center';
  td.colSpan = 2;
  
  var contentMiddle = document.createElement('table');
  contentMiddle.style.width = '860px';
  contentMiddle.style.height = '80px';
  contentMiddle.style.padding = '10px 0';
  contentMiddle.cellPadding = 0;
  contentMiddle.cellSpacing = 0;
  td.appendChild(contentMiddle);
  
  var ctr = contentMiddle.insertRow(-1);
  ctd = ctr.insertCell(-1);
  var itable = document.createElement('table');
  itable.style.width = '860px';
  itable.style.height = '50px';
  itable.cellPadding = 0;
  itable.cellSpacing = 0;
  itable.style.borderTop = 'solid 1px #694247';
  itable.style.borderLeft = 'solid 1px #694247';
  ctd.appendChild(itable);
  
  itr = itable.insertRow(-1);
  itd = itr.insertCell(-1);
  itd.style.width = '230px';
  itd.style.height = '24px';
  itd.style.textAlign = 'left';
  itd.style.borderRight = 'solid 1px #694247';
  itd.style.borderBottom = 'solid 1px #694247';
  itd.style.verticalAlign = 'top';

  itd = itr.insertCell(-1);
  itd.style.width = '140px';
  itd.style.height = '24px';
  itd.style.textAlign = 'left';
  itd.style.verticalAlign = 'top';
  itd.style.borderRight = 'solid 1px #694247';
  itd.style.borderBottom = 'solid 1px #694247';
  
  itd = itr.insertCell(-1);
  itd.style.width = '180px';
  itd.style.height = '24px';
  itd.style.textAlign = 'center';
  itd.style.verticalAlign = 'middle';
  itd.style.fontWeight = 'bold';
  itd.style.color = '#694247';
  itd.style.fontSize = '10pt';
  itd.style.borderRight = 'solid 1px #694247';
  itd.style.borderBottom = 'solid 1px #694247';
  itd.appendChild(document.createTextNode('Hours'));
  
  itd = itr.insertCell(-1);
  itd.style.width = '180px';
  itd.style.height = '24px';
  itd.style.textAlign = 'center';
  itd.style.verticalAlign = 'middle';
  itd.style.fontWeight = 'bold';
  itd.style.color = '#694247';
  itd.style.fontSize = '10pt';
  itd.style.borderRight = 'solid 1px #694247';
  itd.style.borderBottom = 'solid 1px #694247';
  itd.appendChild(document.createTextNode('Extra hours'));
  
  itd = itr.insertCell(-1);
  itd.style.width = '180px';
  itd.style.height = '24px';
  itd.style.textAlign = 'center';
  itd.style.verticalAlign = 'middle';
  itd.style.fontWeight = 'bold';
  itd.style.color = '#694247';
  itd.style.fontSize = '10pt';
  itd.style.borderRight = 'solid 1px #694247';
  itd.style.borderBottom = 'solid 1px #694247';
  itd.appendChild(document.createTextNode('Travelling fee'));
  
  for (var i =0, il = this._item.length; i < il; i++) {
    itr = itable.insertRow(-1);
    itd = itr.insertCell(-1);
    itd.style.height = '24px';
    itd.style.textAlign = 'left';
    itd.style.verticalAlign = 'middle';
    itd.style.padding = '0 20px';
    itd.style.borderRight = 'solid 1px #694247';
    itd.style.borderBottom = 'solid 1px #694247';
    itd.id = unique + '_' + i + '_title_div';

    itd = itr.insertCell(-1);
    itd.style.height = '24px';
    itd.style.padding = '0 20px';
    itd.style.textAlign = 'left';
    itd.style.verticalAlign = 'middle';
    itd.style.borderRight = 'solid 1px #694247';
    itd.style.borderBottom = 'solid 1px #694247';
    itd.id = unique + '_' + i + '_worker_div';
    
    itd = itr.insertCell(-1);
    itd.style.height = '24px';
    itd.style.textAlign = 'center';
    itd.style.verticalAlign = 'middle';
    itd.style.borderRight = 'solid 1px #694247';
    itd.style.borderBottom = 'solid 1px #694247';
    itd.id = unique + '_' + i + '_estimates_div';
    
    itd = itr.insertCell(-1);
    itd.style.width = '180px';
    itd.style.height = '24px';
    itd.style.textAlign = 'center';
    itd.style.verticalAlign = 'middle';
    itd.style.borderRight = 'solid 1px #694247';
    itd.style.borderBottom = 'solid 1px #694247';
    itd.id = unique + '_' + i + '_extras_div';
    
    itd = itr.insertCell(-1);
    itd.style.height = '24px';
    itd.style.textAlign = 'center';
    itd.style.verticalAlign = 'middle';
    itd.style.borderRight = 'solid 1px #694247';
    itd.style.borderBottom = 'solid 1px #694247';
    itd.id = unique + '_' + i + '_travel_div';
  }
  itr = itable.insertRow(-1);
  itd = itr.insertCell(-1);

  
  gui = GuiContainerWorkers.instance(unique, this._item);
  new HandleContainerWorkers(gui, this._item, this._options);
};